//
//  UIView+GestureBlock.h
//  ZZmetro
//
//  Created by 一介布衣 on 2020/6/26.
//  Copyright © 2020 一介布衣. All rights reserved.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

typedef void(^GestureBlock)(__kindof UIView *view, __kindof UIGestureRecognizer *gesture);

typedef NS_ENUM(NSUInteger, GestureType) {
    GestureType_Tap,          // 点击
    GestureType_LongPress,    // 长按
    GestureType_Swipe,        // 轻扫
    GestureType_Pan,          // 移动
    GestureType_Rotate,       // 旋转
    GestureType_Pinch,        // 缩放
};

@interface UIView (GestureBlock)

- (__kindof UIGestureRecognizer *)addGestureRecognizer:(GestureType)type block:(GestureBlock)block;

@end

NS_ASSUME_NONNULL_END
